<template>
    <el-form ref="form" :model="form" label-width="130px">
        <div class="form-section">
            <el-alert title="账号信息" type="success"></el-alert>
            <div class="form-wrap">
                <el-row :gutter="20">
                    <el-col :span="8">
                        <el-form-item label="营业执照扫描件">
                            <el-upload class="upload-demo" drag action="https://jsonplaceholder.typicode.com/posts/" :multiple="false">
                                <i class="el-icon-upload"></i>
                                <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
                                <template #tip>
                                    <div class="el-upload__tip">
                                        中文正本，完整扫描或拍照，不能缺边角
                                    </div>
                                </template>
                            </el-upload>
                        </el-form-item>
                    </el-col>
                    <el-col :span="8">
                        <el-form-item label="法人身份证扫描件">
                            <el-upload class="upload-demo" drag action="https://jsonplaceholder.typicode.com/posts/" :multiple="false">
                                <i class="el-icon-upload"></i>
                                <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
                                <template #tip>
                                    <div class="el-upload__tip">
                                        正反两面扫描件
                                    </div>
                                </template>
                            </el-upload>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row :gutter="20">
                    <el-col :span="24">
                        <el-form-item label="产品图片">
                            <el-upload action="https://jsonplaceholder.typicode.com/posts/" list-type="picture-card" :on-preview="handlePictureCardPreview" :on-remove="handleRemove">
                                <i class="el-icon-plus"></i>
                            </el-upload>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row :gutter="20">
                    <el-col :span="8">
                        <el-form-item label="产品说明书">
                            <el-upload class="upload-demo" drag action="https://jsonplaceholder.typicode.com/posts/" :multiple="false">
                                <i class="el-icon-upload"></i>
                                <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
                            </el-upload>
                        </el-form-item>
                    </el-col>
                </el-row>
            </div>
        </div>
    </el-form>
</template>

<script>
export default {
    data() {
        return {
            form: {},
        };
    },
};
</script>

<style lang="scss" scoped>
.form-section {
    .form-wrap {
        margin-top: 20px;
        .form-row-flex {
            display: flex;
            align-items: center;
        }
        .icon {
            margin-left: 10px;
            color: #e6a23c;
        }
    }
}
</style>
